package team18.yuejian.Server;

import java.io.File;
import java.util.Date;
import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Query;
import team18.yuejian.bean.FocusBean;
import team18.yuejian.bean.NoteBean;
import team18.yuejian.bean.OrderBean;
import team18.yuejian.bean.PicBean;
import team18.yuejian.bean.UserBean;

public interface MineService {

    @GET("user/getuser")
    Call<UserBean> Mine(@Query("uid") int id
    );

    @Multipart
    @POST("update/user")
    Call<UserBean> UserEdit(
            @PartMap Map<String, RequestBody> bodyMap,
            @Part MultipartBody.Part file
            );

    @GET("lists/order")
    Call <List<OrderBean>> orderList(
            @Query("uid") int uid,
            @Query("otid") int otid
    );

    @GET("lists/order")
    Call <OrderBean> orderDetail(
            @Query("oid") int oid,
            @Query("otid") int otid
    );

    @GET("delete/order")
    Call <NoteBean> orderDelete(
            @Query("oid") int oid,
            @Query("uid") int uid
    );

    @GET("user/getshowpic")
    Call <List<PicBean>> getMinePic(
            @Query("uid") int uid
    );

    @GET("delete/showpic")
    Call <NoteBean> deletePic(
            @Query("uid") int uid,
            @Query("spid") int spid
    );

    @GET("lists/focus")
    Call <List<FocusBean>> focusList(
            @Query("uid") int uid
    );

    @GET("delete/focus")
    Call <NoteBean> deleteFocus(
            @Query("uid") int uid,
            @Query("fid") int fid
    );


}
